<template>
	<view class="all">
		<view class="top" 
		@click="jifen"
		:style="{
			'height':'260rpx',
			'background-size': '100% 100%',
			'background-image':$img('https://s4.ax1x.com/2022/01/26/7qEkYn.png') ,
			'background-repeat': 'no-repeat'
			
		}">
			<view class="top_1">
				<text>Preschool education work notes</text>
				<text>幼教工作笔记</text>
				<text>精选好货 大盘点</text>
			</view>
			<view :style="{
			'width':'201.42rpx',
			'height':'213.52rpx',
			'background-size': '100% 100%',
			'background-image':$img('https://s4.ax1x.com/2022/01/26/7qEopq.png') ,
			'background-repeat': 'no-repeat'
		}">

			</view>
		</view>
		<view>
			<liuyuno-tabs :tabData="list" :activeIndex="current" @tabClick='tabClick' back='#141414' />
		</view>
		<view style="padding: 20rpx;background-color: #F8F8FA;">
			<s-list></s-list>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: '推荐',
						color: '#FFFFFF',
						scolor: '#FFE100',
					}, {
						name: '书籍',
						color: '#FFFFFF',
						scolor: '#FFE100',
					}, {
						name: '课程资料',
						scolor: '#FFE100',
						color: '#FFFFFF',
					},

				],
				current: 0
			};
		},
		methods: {
			submit(a) {
				uni.navigateTo({
					url: "./shoppxq/shoppxq"
				})
			},
			jifen(){
				uni.navigateTo({
					url: "./jifnshopping"
				})
			}
		}
	}
</script>

<style lang="scss">
	.top_2 {
		display: flex;
		justify-content: space-around;
		flex-wrap: wrap;
		min-height: 1000rpx;
		background-color: #F8F8FA;

		.top_21 {
			margin-bottom: 20rpx;
			bottom: 8rpx;
			width: 335rpx;

			.top_22 {
				background-color: white;
				padding: 0rpx 15rpx 30rpx 15rpx;

				.top_22_1 {
					font-size: 30rpx;
					font-family: Source Han Sans CN;
					font-weight: 500;
					color: #333333;
					opacity: 1;
				}

				.top_22_3 {
					font-size: 22rpx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: #141414;
					opacity: 1;
				}

				.top_22_2 {
					margin: 10rpx 0 10rpx 0;

					text:nth-of-type(1) {
						font-size: 34rpx;
						font-family: HarmonyOS Sans;
						font-weight: bold;
						color: #D5212C;
						opacity: 1;
					}

					text:nth-of-type(2) {
						margin-left: 10rpx;
						font-size: 20rpx;
						font-family: HarmonyOS Sans;
						font-weight: 400;
						text-decoration: line-through;
						color: #91969A;
						opacity: 1;

					}
				}
			}

			.top_21_1 {
				background-color: white;
				width: 100%;
				height: 335rpx;

				image {
					width: 335rpx;
					height: 100%;
				}
			}
		}
	}

	.top {
		display: flex;
		justify-content: space-around;
		align-items: center;



		.top_1 {
			text {
				display: block;
			}

			text:nth-of-type(1) {
				font-size: 16rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #FFFFFF;
				opacity: 0.8;
			}

			text:nth-of-type(2) {
				font-size: 38rpx;
				margin: 20rpx 0 20rpx 0;
				font-family: DOUYU Font;
				font-weight: normal;
				color: #FFFFFF;
				opacity: 1;
			}

			text:nth-of-type(3) {
				width: 220rpx;
				text-align: center;
				height: 40rpx;
				border: 1rpx solid #FFFFFF;
				border-radius: 0px;
				font-size: 26rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #FFFFFF;
				opacity: 1;
			}
		}
	}
</style>
